<template>
  <div>
    <h1>home</h1>
    <ul class="list">
      <li>
        <router-link :to="{ name: 'student' }">学生想信息相关</router-link>
      </li>
      <li>
        <router-link :to="{ name: 'score' }">学生成绩相关</router-link>
      </li>
    </ul>
    <router-view></router-view>

    <hr />
    <button @click="$router.push('/register')">注册</button>
    <button @click="$router.push('/login')">登录</button>
  </div>
</template>

<script>
export default {
  created() {},
};
</script>

<style lang="scss" scoped>
.list {
  display: flex;
  justify-content: space-between;
}
</style>